<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

// 基本信息
Route::group('user/base',function () {
    Route::any('login','user.Base/login');
    Route::any('register','user.Base/register');
    Route::any('check','user.Base/check');
    Route::any('profile','user.Base/profile');
    Route::any('record','user.Base/record');
    Route::any('recharge','user.Base/recharge');
    Route::any('rechargerecord','user.Base/rechargerecord');
    Route::any('email','user.Base/email');
    Route::any('emailcode','user.Base/emailcode');
});

// 收货地址
Route::group('user/address',function () {
    Route::any('index','user.address/index');
    Route::any('check','user.address/check');
    Route::any('add','user.address/add');
    Route::any('info','user.address/info');
    Route::any('update','user.address/update');
    Route::any('delete','user.address/delete');
    Route::any('order','user.address/order');
});

// vue商城首页和产品信息
Route::group('product/product',function () {
    Route::any('index','product.product/index');
    Route::any('type','product.product/type');
    Route::any('detail','product.product/detail');
});

// vue购物车列表
Route::group('cart/cart',function () {
    Route::any('list','cart.cart/list');
    Route::any('add','cart.cart/add');
    Route::any('edit','cart.cart/edit');
    Route::any('delete','cart.cart/delete');
});

// VUE订单信息
Route::group('order/order',function () {
    Route::any('add','order.order/add');
    Route::any('index','order.order/index');
    Route::any('info','order.order/info');
    Route::any('receiving','order.order/receiving');
    Route::any('retreat','order.order/retreat');
    Route::any('rate','order.order/rate');
    Route::any('express','order.order/express');
});


// uni-app 个人信息
Route::group('user/auth',function () {
    Route::any('login','user.auth/login');
    Route::any('bind','user.auth/bind');
    Route::any('profile','user.auth/profile');
    Route::any('h5upload','user.auth/h5upload');
    Route::any('h5delimg','user.auth/h5delimg');
});


// uni-app 服务类型
Route::group('project/type',function () {
    Route::any('index','project.type/index');
});

// uni-app 预约订单
Route::group('project/project',function () {
    Route::any('add','project.project/add');
    Route::any('index','project.project/index');
    Route::any('pay','project.project/pay');
    Route::any('info','project.project/info');
    Route::any('receiving','project.project/receiving');
    Route::any('rate','project.project/rate');
    Route::any('revoke','project.project/revoke');
});


